﻿<?php
include "includeFiles.php";
include "page.php";
if(empty($cateid)) $cateid=11110;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=7" />

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $C['Title'];?></title>
<Link href="../uploadfile/ico/<?php echo $C['ICO'];?>" rel="Shortcut Icon">
<meta name="Keywords" content="<?php echo $C['Keywords'];?>">
<meta name="description" content="<?php echo $C['Description'];?>">
<Meta name="Copyright" Content="<?php echo $C['CopyRight'];?>">

<link href="css/reset.css" rel="stylesheet" type="text/css" media="screen" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<?php include_once('header.php');?>
<div class="main mid">
   <div class="main_left2">
      <ul>
         <li class="bt"><img src="images/newsbt.jpg" border="0" /></li>
		 	<?php	
	$vm=$info->getAboutMenu(111);
	foreach($vm as $key=>$value){
	 ?>
    <li><a href="news.php?cateid=<?=$value['InfoCategoryID']?>&type=3"><?=$value['CateName']?></a></li>
<? }?>
      
	  
      </ul>
   </div>
   <div class="main_right2">
      <div class="main_nav2"><a href="index.php">首页</a> > <a href="news.php">新闻中心</a> > <?=$alink=$info->getLinks($cateid)?></div>
      <div class="main_bt2"><?=$alink?></div>
         <div class="main_txt2">
		 
		  <?PHP
				$result = mysql_query("SELECT * FROM `hy_b_info` WHERE CateID = '$cateid' AND Lang='".$cfg_cur_lan."' ");
				$total = mysql_num_rows($result);
				//调用pageft()，每页显示10条信息（使用默认的20时，可以省略此参数），使用本页URL（默认，所以省略掉）。
				_PAGEFT($total,10);
				if(empty($total)) echo "对不起！资料暂时为空！";
				$SQL = "SELECT * FROM `hy_b_info` WHERE CateID = '$cateid' AND Lang='".$cfg_cur_lan."'  order by `SortNum` asc,`PublishDate`  desc limit $firstcount,$displaypg  ";
				$result = mysql_query($SQL);
				$blackcolor = 0;
				while($value = mysql_fetch_array($result)){
			?>
            <div class="news">
               <div class="news1"><a href="news_detail.php?id=<?=$value[InfoID]?>&cateid=<?=$value[CateID]?>&type=3"><?=$value['Title']?></a></div>
               <div class="news2"><?=date("Y-m-d",$value['PublishDate'])?></div>
            </div>
    
			<? }?>
         </div>
      <div class="page"><?php echo $pagenav; ?></div>
   </div>
</div>
<?php include_once('footer.php');?>
</body>
</html>
